const bannerModel = require('../model/banner/BannerModel')

class BannerController {
  static async list (ctx) {
    const list = await bannerModel.find().then()
    ctx.body = { err: 0, msg: 'success', data: { list } }
  }
}

module.exports = BannerController